package com.haier.npt.security.event.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.haier.npt.security.cache.SysAppCacheService;
import com.haier.npt.security.event.SysAppChangeEvent;


/**
 * @Description: sysapp事件监听回调
 * @author: lixu
 * @date:   2018年7月13日 下午1:52:08   
 */
@Component
public class SysAppChangeEventListener implements ApplicationListener<SysAppChangeEvent>  {

	@Autowired
	private SysAppCacheService sysAppCacheService ; 
	
	@Override
	public void onApplicationEvent(SysAppChangeEvent event) {
		/**
		 * 清除sysapp的缓存
		 */
		sysAppCacheService.clearAppCache();  
	}
}
